package data.analysis.grammar;

import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.Token;
import org.antlr.runtime.TokenStream;
import org.antlr.runtime.tree.CommonTreeAdaptor;

public class LocStatASTAdaptor extends CommonTreeAdaptor {
	@Override
	public Object create(Token token) {
        return new LocStatAST(token);
    }
	
	@Override
    public Object dupNode(Object t) {
        if (t == null) {
            return null;
        }
        return create(((LocStatAST)t).token);
    }
	
	
	@Override
	public Object errorNode(TokenStream input, Token start, Token end, RecognitionException e) {
		return new LocStatASTError(input, start, end, e);
	}
}
